package net.qhzw.vip.qiyu.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.entity.DtsUser;
import net.qhzw.vip.qiyu.entity.MallUserVip;
import net.qhzw.vip.qiyu.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallUserVipMapper extends BaseMapper<MallUserVip> {


    List<DtsUser> listMallUser(@Param("adapter") PageAdapter pageAdapter,
                               @Param("shopId") Long shopId,
                               @Param("name") String name,
                               @Param("isVip") Integer isVip);

    Long totalMallUser(@Param("shopId") Long shopId,
                       @Param("name") String name,
                       @Param("isVip") Integer isVip);

    int selectVIPbyProdId(@Param("userId") Long userId, @Param("prodId") Long prodId);


}
